﻿@model List<CMSMVC4.CateLang>
@if (Model != null)
{
    foreach (var i in Model)
    {
        if (ViewBag.show)
        {
            if (i.Category.Id == ViewBag.id)
            {
                <a href="@Url.Action("Index", "ThietBi", new { id = i.Category.Id })">
                    <div class="dichvu_mid_left_menu chon" index ="@i.Category.Id" paren='@i.Category.paren'>
                        @i.Name
                    </div>
                </a>
            }
            else
            {
                <a href="@Url.Action("Index", "ThietBi", new { id = i.Category.Id })">
                    <div class="dichvu_mid_left_menu chuachon" index ="@i.Category.Id" paren='@i.Category.paren'>
                        @i.Name
                    </div>
                </a>
            }
        }
        else
        {
            if (i.Category.Id == ViewBag.id)
            {
                <a href="@Url.Action("Index", "ThietBi", new { id = i.Category.Id })">
                    <div style="display: none;" class="dichvu_mid_left_menu chon" index ="@i.Category.Id" paren='@i.Category.paren'>
                        @i.Name
                    </div>
                </a>
            }
            else
            {
                <a href="@Url.Action("Index", "ThietBi", new { id = i.Category.Id })">
                    <div style="display: none;" class="dichvu_mid_left_menu chuachon" index ="@i.Category.Id" paren='@i.Category.paren'>
                        @i.Name
                    </div>
                </a>
            }
        }
    }
}
